package com.snk.common.utils;


import com.snk.common.exception.ServiceException;

public class AssertUtils {
    public  static void isValid(boolean statement,String msg){
        if(statement)
            throw new IllegalArgumentException(msg);

    }

    public static void isServiceValid(boolean statement,String msg) {
        if(statement)
            throw new ServiceException(msg);
    }
}
